#ifndef __ADU_CONSTANT_H__
#define __ADU_CONSTANT_H__

#define ACCELERATION 		20.0f
#define PI 					3.14159265359
#define SPLASH_TIMER		1
/* List scene */
#define	GAMEPLAY_SCENE		100
#define SPLASH_SCENE 		101
#define GAMEOVER_SCENE 		102
#define INTRO_SCENE			103
/* End list scene */

#define FONT				"fonts/Font.ttf"
#define FONT_SIZE			20

#define IMG_BACKGROUND 		"images/background.png"
#define IMG_TOP_BACKGROUND	"images/top_background.png"
#define IMG_SPLASH			"images/splash.jpg"
#define ARROW_TUT_IMG		"images/arrow.png"
// z-index
#define Z_BACKGROUND		0
#define Z_TOPBACKGROUND		1
#define Z_FLUID				4
#define Z_PIPE				5
#define Z_BASIN				6
#define Z_DUCK				7
#define Z_PIPECIRCLE		8
#define Z_HAND				9
#define Z_GARBAGE			10
#define Z_WATER				100
#define Z_MENU				100
#define Z_GAMEOVER_BG		200
#define Z_GAMEOVER_ITEM		201
#define Z_FISH				6

#define IMG_PIPE_LINE		"images/pipe_line.png"
#define IMG_PIPE_HEAD		"images/pipe_head.png"
#define IMG_PIPE_CIRCLE		"images/pipe_circle.png"
#define IMG_WATER			"images/water.png"
#define	NUM_PIPE_LINE		10

#define MAX_PARTICLE		200
#define	RADIUS_PARTICLE		0.35f

#define MUSIC_BG			"bg1.MP3"

// CATEGORY CONTACT ID
#define CATEGORY_PLAYER		0x0001
#define	CATEGORY_FLUID		0x0010
#define CATEGORY_WATER		0x0100
#define CATEGORY_BONUS		0x1000

#define PARTICLE_LIFETIME_MIN	2.0f
#define PARTICLE_LIFETIME_MAX	2.0f

/* Duck State*/
#define DUCK_IDLE       	0
#define DUCK_FLYING     	1
#define DUCK_TIRED      	2

/* Duck resources*/
#define IDLE_STATE_IMG      "images/idle.png"
#define FLYING_STATE_IMG    "images/flying.png"
#define IMG_DUCK			"images/duck.png"
#define IMG_BASIN			"images/basin.png"

#define IMG_FISH			"images/fish.png"
#define IMG_PARTICLE_FIRE	"images/fire.png"


/* Duck health */
#define DUCK_HEALTH         100


#define IMG_EXIT_PNG		"images/exit.png"
#define IMG_SOUND_PNG		"images/sound.png"
#define IMG_MUSIC_PNG		"images/music.png"
#define IMG_PAUSE_PNG		"images/pause.png"
#define IMG_HIGHSCORE_PNG	"images/highscore.png"
#define IMG_REPLAY			"images/replay.png"
#define IMG_NEXTLEVEL		"images/nextlevel.png"
#define IMG_SHAREFB			"images/facebook.png"
#define IMG_GO 				"images/go.png"
#define IMG_INTRO_BG_1		"images/bg_intro_1.png"
#define IMG_INTRO_BG_2		"images/bg_intro_2.png"
#define IMG_INTRO_BG_3		"images/bg_intro_3.jpg"

#define IMG_SHOT_1			"images/screenshot1.png"
#define IMG_SHOT_2			"images/screenshot2.png"
#define IMG_SHOT_3			"images/screenshot3.png"

#define FIXTURE_DUCK		"duck"
#define FIXTURE_BASIN		"basin"


#define TAG_DUCK			1001
#define TAG_BASIN			1002
#define HAND_TAG			1003
#define TUTORIAL_TAG		1004
#define TUTORIAL_TEXT_TAG	1005
#define TAG_PIPEHEAD        1006
#define TAG_FISH			1007

#define DENSITY_DUCK		2.5
#define	DENSITY_BASIN		15
#define DENSITY_GARBAGE		24.8
#define	DENSITY_WATER		100

#define FRICTION_BASIN      0.4f
#define RESTITUTION_BASIN   0.0f

#define FRICTION_DUCK       0.4f
#define RESTITUTION_DUCK    0.0f

#define NUM_BACKGROUND		10
#define BASIN_DELTA			Director::getInstance()->getWinSize().width/2.5;
#define NUM_BASIN           10
#define BASIN_RANDOM_RANGE  100
/* Gabage resources*/

static const char* GARBAGE_RES_PATH[] = {
		"images/garbage_1.png",
		"images/garbage_2.png",
		"images/garbage_3.png",
		"images/garbage_4.png",
		"images/garbage_5.png",
		"images/garbage_coca.png"
};

#define NUM_IMG_INTRO	78
#define SIZE_WATER 1.5

#define MOV_FILE 	"video/video.mp4"

#define SCALE_FACTOR Director::getInstance()->getWinSize().height/Director::getInstance()->getWinSize().width

#define FLOW_INIT_SPEED 30.0f

#define ANIMATION_INTERVAL 0.2f

#define FORCE_FACTOR 500.0f

#define TUTORIAL_KEY 	"TUTORIALS"
#endif

